package com.xuelang.pipeline.artifact.app.resource.converter;

import com.xuelang.pipeline.artifact.client.resource.dto.ArtifactProxyDTO;
import com.xuelang.pipeline.artifact.domain.resource.ArtifactProxy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 制品仓库代理DTO与制品仓库代理实体转换器
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ArtifactProxyDTOToArtifactProxyConverter {
    ArtifactProxyDTOToArtifactProxyConverter INSTANCE = Mappers.getMapper(ArtifactProxyDTOToArtifactProxyConverter.class);

    /**
     * ArtifactProxy转化为ArtifactProxyDTO
     * @param artifactProxy
     * @return
     */
    ArtifactProxyDTO artifactProxyToArtifactProxyDTO(ArtifactProxy artifactProxy);

    /**
     * ArtifactProxyDTO转化为ArtifactProxy
     * @param artifactProxyDTO
     * @return
     */
    ArtifactProxy artifactProxyDTOToArtifactProxy(ArtifactProxyDTO artifactProxyDTO);
}
